package com.redis.tools;

import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * @Author: 胡成
 * @Version: 0.0.1V
 * @Date: 2018/10/26
 * @Description: 类描述
 **/
public class RedisTools {

    public static void lPush(StringRedisTemplate stringRedisTemplate,String key,String value){
        stringRedisTemplate.opsForList().leftPush(key,value);
    }

    public static String rpop(StringRedisTemplate stringRedisTemplate,String key){
        return stringRedisTemplate.opsForList().rightPop(key);
    }
}
